﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace CH.Easy.Aop
{
    public sealed class InvokeMessage
    {
        public InvokeMessage()
        {
            Parameters = new Dictionary<string, object>();
        }
        public string Method { get; set; }
        public object Result { get; set; }
        public string Message { get; set; }
        public Dictionary<string, object> Parameters { get; set; }
        public Exception Exception { get; set; }
        public bool IsCanExcute { get; set; }

        public void SetParameter(string name, object arg)
        {
            this.Parameters.Add(name, arg);
        }
    }
}
